package com.game.network.error;

import com.game.common.error.IServerError;

public enum GameGatewayError implements IServerError {
    TOKEN_ILLEGAL(101, "令牌非法"),
    TOKEN_EXPIRE(102, "令牌过期"),
    REPEATED_CONNECT(103, "重复连接"),
    ;
    private int errorCode;
    private String errorDesc;

    GameGatewayError(int errorCode, String errorDesc) {
        this.errorCode = errorCode;
        this.errorDesc = errorDesc;
    }

    @Override
    public int getErrorCode() {
        return errorCode;
    }

    @Override
    public String getErrorDesc() {
        return errorDesc;
    }

    @Override
    public String toString() {
        return "errorCode:" + errorCode + " errorDesc:" + errorDesc;
    }
}
